package com.leadingsoft.pwxk.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.leadingsoft.pwxk.model.Category;

public interface CategoryRepository extends JpaRepository<Category, Long> {

	List<Category> findByParentCodeIsNull();

	List<Category> findByParentCode(String parentcode);

	// List<Category> findByCode(String code);

	Category findByCode(String code);

}
